import request from '@/utils/request'

export const addOneAgentUser = data => request({
  url: '/addOneAgentUser',
  method: 'put',
  data: data || {}
})

export const deleteOneAgentUser = id => request({
  url: '/deleteOneAgentUser/' + id,
  method: 'delete'
})

export const updateOneAgentUser = data => request({
  url: '/updateOneAgentUser',
  method: 'patch',
  data: data || {}
})

export const getOneAgentUser = id => request({
  url: '/getOneAgentUser/' + id,
  method: 'get'
})

export const getAgentUserList = data => request({
  url: '/getAgentUserList',
  method: 'post',
  data: data || {}
})

export const getAllAgentUserList = () => request({
  url: '/getAllAgentUserList',
  method: 'get'
})

